#!/bin/bash
for i in "$1"/*.wav; 
do 
shnconv -i wav -o flac "$i";
if [ "$?" -eq 0 ]; then 
rm -fv "$i"; 
fi; 
done
